|
|
|
|
|
|
|
different columns. To do so, you need to set up the splits and then use the Column and Layout tabs of the Property Pages to customize the grid. The Columns tab controls the order of the data columns in the grid (see Figure 28.13). |
|
|
|
|
|
|
|
|
Figure 28.13
You can reorder the columns manually if desired. |
|
|
|
|
|
|
|
|
Working with the Columns tab is simple; just pick a column, and choose the Caption (column header) and the name of the data field. |
|
|
|
|
|
|
|
|
|
If you do not enter a valid expression for the DataField, the column appears blank.  |
|
|
|
|
|
|
|
|
|
|
Whereas the Columns tab controls the data displayed, the Layout tab controls formatting of an individual column. To use the Layout tab, pictured in Figure 24.14, first select a column and split you want to work with. Then adjust the following properties: |
|
|
|
|
|
|
|
|
LockedWhen this property is set to True, it prevents editing a column, even if the grid's General properties allow it. |
|
|
|
|
|
|
|
|
AllowSizingThis property, which is True by default, allows the user to resize a column at designtime. |
|
|
|
|
|
|
|
|
VisibleThis property controls whether a column is seen on the grid. (However, if you don't need to display a column, the most efficient way to accomplish that is to eliminate it from your data source.) |
|
|
|
|
|
|
|
|
WrapTextThis property determines whether the text in a column is displayed in multiple lines if it is longer than the column width. An example of the WrapText property in action is shown in Figure 28.15. |
|
|
|
|
|
|
|
|
ButtonThis property determines whether a drop-down button is displayed in the selected column for a highlighted field. |
|
|
|
|
|
|
|
|
DividerStyleThis property is similar to the RowDividerStyle property of the General tab, but it can be set for each column. |
|
|
|
|
|